package com.homestay.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Home {
    private int id;
    private int num;
    private String h_type;
    private String price;
    private String state;
    private String img;
    private String text;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public Home(int num, String hType, String price, String state, String img, String text) {
        this.num = num;
        this.h_type = hType;
        this.price = price;
        this.state = state;
        this.img = img;
        this.text = text;
    }

    public Home(int id, int num, String hType, String price, String state, String img, String text) {
        this.id = id;
        this.num = num;
        this.h_type = hType;
        this.price = price;
        this.state = state;
        this.img = img;
        this.text = text;
    }
}
